$OpenBSD: patch-Wnn_uum_ttyfdslot_c,v 1.1 2017/04/29 14:31:40 espie Exp $
--- Wnn/uum/ttyfdslot.c.orig
+++ Wnn/uum/ttyfdslot.c
@@ -100,9 +100,8 @@ int fd;
 
 #include <ttyent.h>
 #include <stdio.h>
-
-char *ttyname();
-char *rindex();
+#include <string.h>
+#include <unistd.h>
 
 int ttyfdslot(fd)
 int fd;
